package com.github.yeecode.mybatisdemo.model;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> queryUserBySchoolName(User user);

    /**
     * 参数测试的例子
     * @param id
     * @param name
     * @param email
     * @param age
     * @param schoolName
     * @return
     */
    List<User> queryUserBySchoolName1(int id, String name, @Param("emailAdress") String email,int age,String schoolName);
}
